package com.goal98.service

import com.goal98.SoccerMatch

class MatchService {

    boolean transactional = false

    def upcomingMatch(params) {
        if(!params)
            params = [max: 5, sort: 'matchDate', order: 'asc']
        return SoccerMatch.findAllByMatchDateGreaterThan(
                    new Date(), params)

    }
}
